package cn.com.xljk.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.util.Date;


/**
 * 量选项对象 gauge_option
 *
 * @author rz
 * @date 2021-09-08
 */
public class GaugeOption
{
    private static final long serialVersionUID = 1L;

    /** Id */
    private Long id;

    /** 乐观锁 */
    private Long revision;

    /** 逻辑删除标志 */
    private Integer delFlag;

    /** 创建人 */
    private String createdBy;

    /** 创建时间 */
    @TableField(fill = FieldFill.INSERT,value = "created_time")
    private Date createdTime;

    /** 更新人 */
    private String updatedBy;

    /** 更新时间 */
    @TableField(fill = FieldFill.INSERT_UPDATE,value = "updated_time")
    private Date updatedTime;

    /** 题目类型 具体详见字典表。与gauge_subject的type字段保持一直，两者冲突时，以gauge_param表中的type字段内容为主 */
    private String type;

    /** 量表Id */
    private String gaugeId;

    /** 题目Id */
    private String subjectId;

    /** 选项序号，用于确定ABCD的位置 */
    private Long optionIndex;

    /** 选项分值 */
    private String point;

    /** 选项信息 选择题时为选项的题目，其它类型的题目时，使用包含具体方法的JSON串 */
    private String optionInfo;

    /** 选项结果 当选项无法用数值体现结果时，启用该字段，比如储存附件或照片。 */
    private String value;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRevision(Long revision)
    {
        this.revision = revision;
    }

    public Long getRevision()
    {
        return revision;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }
    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy()
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime)
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime()
    {
        return updatedTime;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setGaugeId(String gaugeId)
    {
        this.gaugeId = gaugeId;
    }

    public String getGaugeId()
    {
        return gaugeId;
    }
    public void setSubjectId(String subjectId)
    {
        this.subjectId = subjectId;
    }

    public String getSubjectId()
    {
        return subjectId;
    }
    public void setOptionIndex(Long optionIndex)
    {
        this.optionIndex = optionIndex;
    }

    public Long getOptionIndex()
    {
        return optionIndex;
    }
    public void setPoint(String point)
    {
        this.point = point;
    }

    public String getPoint()
    {
        return point;
    }
    public void setOptionInfo(String optionInfo)
    {
        this.optionInfo = optionInfo;
    }

    public String getOptionInfo()
    {
        return optionInfo;
    }
    public void setValue(String value)
    {
        this.value = value;
    }

    public String getValue()
    {
        return value;
    }

    @Override
    public String toString() {
        return "GaugeOption{" +
                "id=" + id +
                ", revision=" + revision +
                ", delFlag=" + delFlag +
                ", createdBy='" + createdBy + '\'' +
                ", createdTime=" + createdTime +
                ", updatedBy='" + updatedBy + '\'' +
                ", updatedTime=" + updatedTime +
                ", type='" + type + '\'' +
                ", gaugeId='" + gaugeId + '\'' +
                ", subjectId='" + subjectId + '\'' +
                ", optionIndex=" + optionIndex +
                ", point='" + point + '\'' +
                ", optionInfo='" + optionInfo + '\'' +
                ", value='" + value + '\'' +
                '}';
    }
}
